﻿<%@ Page Title="" Language="C#" MasterPageFile="~/source/masterpage/Base.Master" AutoEventWireup="true" CodeBehind="Products.aspx.cs" Inherits="QLK.Web.Products" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">

    <title></title>
    <style type="text/css">
        .style1
        {
            width: 100%;
        }
        .style2
        {
            text-align: center;
        }
        .style3
        {
            width: 332px;
            text-align: right;
        }
    </style>

</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">

    <div>
            &nbsp;<table class="style1" cellpadding="2" cellspacing="2">
            <tr>
                <td colspan="2" style="text-align: center">
                    <b>INSERT PRODUCT</b></td>
            </tr>
            <tr>
                <td class="style3">
                    &nbsp;</td>
                <td>
                    <asp:Label ID="lblWarning" runat="server" ForeColor="#FF3300"></asp:Label>
                </td>
            </tr>
            <tr>
                <td class="style3">
                    UPC:&nbsp;&nbsp;&nbsp;
                </td>
                <td>
                    <asp:TextBox ID="txtUPC" runat="server" Width="250px"></asp:TextBox>
                    <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" 
                        ControlToValidate="txtUPC" ErrorMessage="** Can not null" ValidationGroup="CheckIsNull"></asp:RequiredFieldValidator>
                </td>
            </tr>
            <tr>
                <td class="style3">
                    ProductName:&nbsp;&nbsp;&nbsp;
                </td>
                <td>
                    <asp:TextBox ID="txtProName" runat="server" Width="250px"></asp:TextBox>
                    <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" 
                        ControlToValidate="txtProName" ErrorMessage="** Can not null" ValidationGroup="CheckIsNull"></asp:RequiredFieldValidator>
                </td>
            </tr>
            <tr>
                <td class="style3">
                    Category:&nbsp;&nbsp;&nbsp;&nbsp;
                </td>
                <td>
                    <asp:DropDownList ID="drlCateID" runat="server" Height="22px" Width="250px">
                    </asp:DropDownList>
                </td>
            </tr>
            <tr>
                <td class="style3">
                    Manufacture:&nbsp;&nbsp;&nbsp;&nbsp;
                </td>
                <td>
                    <asp:DropDownList ID="drlManufacture" runat="server" Height="22px" 
                        Width="250px">
                        <asp:ListItem>--Choose--</asp:ListItem>
                        <asp:ListItem>IBM</asp:ListItem>
                        <asp:ListItem>Dell</asp:ListItem>
                        <asp:ListItem>Asus</asp:ListItem>
                        <asp:ListItem>Apple</asp:ListItem>
                        <asp:ListItem>Panasonic</asp:ListItem>
                        <asp:ListItem>Philips</asp:ListItem>
                        <asp:ListItem>Happy Cook</asp:ListItem>
                        <asp:ListItem>Office</asp:ListItem>
                        <asp:ListItem>Others</asp:ListItem>
                    </asp:DropDownList>
                </td>
            </tr>
            <tr>
                <td class="style3" style="vertical-align:text-top">
                    Image:&nbsp;&nbsp;&nbsp;&nbsp;
                </td>
                <td>
                    <asp:Image ID="ImgProduct" runat="server" Height="122px" Width="250px" />
                    <br />
                    <asp:FileUpload ID="FileUpload1" runat="server" Width="250px" />
                </td>
            </tr>
            <tr>
                <td class="style3" style="vertical-align:text-top">
                    &nbsp;</td>
                <td>
                    <asp:Button ID="btnUpload" runat="server" onclick="btnUpload_Click" 
                        Text="Upload Image" Height="27px" Width="120px"/>
                    <asp:Button ID="btnSave" runat="server"  
                        Text="Save Product" Width="120px" Height="30px" 
                        ValidationGroup="CheckIsNull" onclick="btnSave_Click"/>
                </td>
            </tr>
            <tr>
                <td class="style2" style="vertical-align:text-top" colspan="2">
                    <asp:LinkButton ID="btnProducts" runat="server" BorderStyle="None" 
                        ForeColor="Lime" onclick="btnProducts_Click">View Products</asp:LinkButton>
                    
                </td>
            </tr>
        </table>
    </div>

</asp:Content>
